<form method="post" action="" class="pageForm required-validate">
<div class="pageContent">
    <div class="pageFormContent">
        <fieldset>
        <dl>
            <dt><@label key='productOrderNum.C,colon'>生产订单编号：</@label></dt>
            <dd><input type="text" name="productOrderNum" value="${productOrder.productOrderNum!''}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='orderStatusECode.C,colon'>订单状态：</@label></dt>
            <dd><select name="statuseCode" disabled="disabled">
                    <option value="" ><@label key='all.C'>所有</@label></option>
                    <#if orderStatusECode??>
                        <#list orderStatusECode as ecode>
                            <option value="${ecode.eCode!''}" <#if productOrder.statuseCode?? && productOrder.statuseCode == ecode.eCode> selected</#if> >${ecode.eCodeText!''}</option>
                        </#list>
                    </#if>
                </select>
            </dd>
        </dl>
        <dl>
            <dt><@label key='orderType.C,colon'>订单类型：</@label></dt>
            <dd><input type="text" name="orderTypeCode" value="${productOrder.orderTypeText!''}" readonly="readonly"/>
            </dd>
        </dl>
        <dl>
            <dt><@label key='materialCode.C,colon'>物料编号：</@label></dt>
            <dd>
                <input name="materialCode" value="" type="hidden"/>
                <input name="materialLookup.materialCode" type="text" postField="componentText" value="${productOrder.materialCode!''}" readonly="readonly" />
            </dd>
        </dl>
        <dl>
            <dt><@label key='materialText.C,colon'>物料名称：</@label></dt>
            <dd><input name="materialLookup.materialText" type="text" value="${productOrder.materialText!''}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='plannedQuantity.C,colon'>计划数量</@label></dt>
            <dd><input type="text" name="plannedQuantity" class="number" readonly="readonly" value="${productOrder.plannedQuantity!''}"/></dd>
        </dl>
        <dl>
            <dt><@label key='requirementDate.C,colon'>需求日期：</@label></dt>
            <dd><input type="text" name="requirementDate" readonly="readonly" value="${(productOrder.requirementDate?string('yyyy-MM-dd'))?if_exists}"/></dd>
        </dl>
        <dl>
            <dt><@label key='productionlotNum.C,colon'>生产批次号：</@label></dt>
            <dd><input type="text" name="productionlotNum" value="${productOrder.productionlotNum!''}" readonly="readonly" /></dd>
        </dl>
        <dl>
            <dt><@label key='plannedstartDateTime.C,colon'>计划开始时间：</@label></dt>
            <dd><input type="text" name="plannedstartDateTime" value="${(productOrder.plannedstartDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}"
             readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='plannedendDateTime.C,colon'>计划结束时间：</@label></dt>
            <dd><input type="text" name="plannedendDateTime" value="${(productOrder.plannedendDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='actualstartDateTime.C,colon'>实际开始时间：</@label></dt>
            <dd><input type="text" name="actualstartDateTime" value="${(productOrder.actualstartDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='actualendDateTime.C,colon'>实际结束时间：</@label></dt>
            <dd><input type="text" name="actualendDateTime" value="${(productOrder.actualendDateTime?string('yyyy-MM-dd HH:mm:ss'))?if_exists}" readonly="readonly"/></dd>
        </dl>
        <dl>
            <dt><@label key='completedQuantity.C,colon'>完工数量：</@label></dt>
            <dd><input type="text" name="completedQuantity" class="number" readonly="readonly" value="${productOrder.completedQuantity!''}"/></dd>
        </dl>
        <dl>
            <dt><@label key='scrappedQuantity.C,colon'>报废数量：</@label></dt>
            <dd><input type="text" name="scrappedQuantity" class="number" readonly="readonly" value="${productOrder.scrappedQuantity!''}"/></dd>
        </dl>
        <dl>
            <dt><@label key='repairQuantity.C,colon'>返修数量：</@label></dt>
            <dd><input type="text" name="repairQuantity" class="number" readonly="readonly" value="${productOrder.repairQuantity!''}"/></dd>
        </dl>
        <dl>
            <dt><@label key='customer.C,colon'>客户：</@label></dt>
            <dd><input type="text" name="customer" value="${productOrder.customer!''}" readonly="readonly" maxlength="40"/></dd>
        </dl>
        <dl>
            <dt><@label key='customerOrder.C,colon'>客户订单：</@label></dt>
            <dd><input type="text" name="customerOrder" value="${productOrder.customerOrder!''}" readonly="readonly" maxlength="40"/></dd>
        </dl>
        <dl>
            <dt><@label key='priority.C,colon'>优先级：</@label></dt>
            <dd><input type="text" name="priority" value="${productOrder.priority!''}" readonly="readonly" maxlength="40"/></dd>
        </dl>
        </fieldset>
        <#if productOrder??>
            <#assign createInfo=productOrder/> 
            <#include "/common/createInfo_width.html">
        </#if>
        
    <div class="tabs">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li id="component" data-selectedid="processOperation_component" class="exerInputS"><a href="javascript:;" id="select1"><span>订单详情</span></a></li>
                </ul>
            </div>
        </div>
        <div class="tabsContent" style="height:180px">
            <div>
            <table class="table border" width="250%" layoutH="360%">
            <thead>
                <tr>
                    <th width="40"><@label key="serialNumber.C">序号</@label></th>
                    <th width="100"><@label key='productionOrderNum.C'>生产订单编号</@label></th>
                    <th width="80"><@label key='orderStatusECode.C'>订单状态</@label></th>
                    <th width="80"><@label key='orderType.C'>订单类型</@label></th>
                    <th width="100"><@label key='materialCode.C'>物料编号</@label></th>
                    <th width="100"><@label key='materialText.C'>物料名称</@label></th>
                    <th width="100"><@label key='cmprocess_code.C'>工艺编号</@label></th>
                    <th width="50"><@label key='cmprocessrev.C'>工艺版本</@label></th>
                    <th width="80"><@label key='plannedQuantity.C'>计划数量</@label></th>
                    <th width="80"><@label key='completedQuantity.C'>完工数量</@label></th>
                    <th width="80"><@label key='scrappedQuantity.C'>报废数量</@label></th>
                    <th width="80"><@label key='repairQuantity.C'>返修数量</@label></th>
                    <th width="100"><@label key='requirementDate.C'>需求日期</@label></th>
                    <th width="80"><@label key='productionlotNum.C'>生产批次号</@label></th>
                    <th width="100"><@label key='actualstartDateTime.C'>实际开始时间</@label></th>
                    <th width="100"><@label key='actualendDateTime.C'>实际结束时间</@label></th>
                    <th width="80"><@label key='createUser.C'>创建人</@label></th>
                    <th width="140"><@label key='createDateTime.C'>创建时间</@label></th>
                    <th width="80"><@label key='modifyUser.C'>修改人</@label></th>
                    <th width="140"><@label key='modifyDateTime.C'>修改时间</@label></th>
                </tr>
            </thead>
            <tbody>
            <#if orderDetails??><#if (orderDetails?size>0 )>
                <#list orderDetails as detail>
                <tr>
                    <td>${detail_index + 1}</td>
                    <td>${detail.productionOrderNum!''}</td>
                    <td><#if productionEcode??>
                        <#list productionEcode as ecode>
                            <#if detail.statuseCode == ecode.eCode>${ecode.eCodeText!''}<#break></#if>
                        </#list>
                        </#if>
                    </td>
                    <td>${detail.orderTypeText!''}</td>
                    <td>${detail.materialCode!''}</td>
                    <td>${detail.materialText!''}</td>
                    <td>${detail.processCode!''}</td>
                    <td>${detail.processRev!''}</td>
                    <td>${detail.plannedQuantity!''}</td>
                    <td>${detail.completedQuantity!''}</td>
                    <td>${detail.scrappedQuantity!''}</td>
                    <td>${detail.repairQuantity!''}</td>
                    <td>${(detail.requirementDate?string("yyyy-MM-dd"))?if_exists}</td>
                    <td>${detail.productionlotNum!''}</td>
                    <td>${(detail.actualstartDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                    <td>${(detail.actualendDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                    <td>${detail.createUser!''}</td>
                    <td>${(detail.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                    <td>${detail.modifyUser!''}</td>
                    <td>${(detail.modifyDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                </tr>
            </#list>
            </#if>
            <#else>
            <tr>
                    <td colspan="11" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
            </tr>
            </#if>
            </tbody>
            </table>
            </div>
        </div>
        <div class="tabsFooter">
                <div class="tabsFooterContent"></div>
        </div>
        </div>
    </div>
<div class="formBar">
    <ul>
        <li>
            <div class="buttonActive"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
        </li>
    </ul>
</div>
</div>
</form>
